RGBSurface.FloodFill Method

Performs a "floodfill" (the action performed by a PaintBucket tool in an image editing program) on an RGBSurface. The pixel at x, y and all adjacent pixels of the same color are changed to the passed FillColor.

Syntax

RGBSurface.FloodFill x, y, FillColor


Parameters

x

Integer

y

Integer

FillColor

Color